package com.medical.patient.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

//监听队列
//@RabbitListener(queues = "01A")
//@Component
public class MyListener {

    @RabbitHandler
    public void getMsg(String message){
        System.out.println("01A"+message);
    }
}
